import React from 'react';

import './box.css'
export default class 组件名 extends React.Component {

    state = {

    };
    render() {
        return (
            <button className={'button' + (this.props.type || 'primary')}
            disabled={this.props.disabled}
            onClick={this.props.onClick}
            >
                {this.props.isloading && <span className='trans'>{this.props.loadingIcon}</span>}
                
                    {this.props.children}
            </button>
        );
    }

}
